// Copyright 2011 Google Inc. All Rights Reserved.

package google_io2011_logad;

/**
 * Client identity data for OAuth2 helpers.
 *
 * Holds the elements needed to identify an application using OAuth2.
 *
 * The developer can generated identity credentials for their application
 * using the "API Access" tab in the
 * <a href="https://code.google.com/apis/console#access">Google APIs console</a>
 *
 * @author aiuto@google.com (Tony Aiuto)
 */
public class OAuth2ClientIdentity {

  public final String clientId;
  public final String clientSecret;
  public final String redirectUris;

  public OAuth2ClientIdentity(String clientId, String clientSecret,
                              String redirectUris) {
    this.clientId = clientId;
    this.clientSecret = clientSecret;
    this.redirectUris = redirectUris;
  }

  public OAuth2ClientIdentity(String clientId, String clientSecret) {
    this(clientId, clientSecret, null);
  }
}
